package com.store_pro.entity;

import jakarta.persistence.Id;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

/**
 * 商品数据的实体类
 *
 * @author jasmine
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class Product extends BaseEntity implements Serializable {
    /*** 商品id*/
    @Id
    private Integer id;
    /*** 商品分类id*/
    private Integer categoryId;
    /*** 商品分类名称*/
    private String itemType;
    /*** 商品名称*/
    private String title;
    /*** 商品卖点*/
    private String sellPoint;
    /*** 商品价格*/
    private Long price;
    /*** 商品数量*/
    private Integer num;
    /*** 商品图片*/
    private String image;
    /*** 商品状态*/
    private Integer status;
    /*** 商品创建时间*/
    private Integer priority;

}
